package Fourth;

import java.util.Scanner;

public class TestQuestion {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String choices1[]={"A.package","B.derive","C.polymorphism","D.Static"};
		Question mq=new MultiQues("Characteristics of object-oriented program design is",choices1,"abc");
		String choices2[]= {"A.0","B.1","C.2","D.3"};
		Question sq=new SingleQues("Default value of int type is",choices2,'A');
		//多选题
		System.out.print(mq.toString());
		String answer=sc.nextLine();
		if(mq.check(answer)) {//多选题答案正确
			System.out.print("OK\n");
		}
		else {
			System.out.print("NO\n");
		}
		System.out.print("\n");
		//单选题
		System.out.print(sq.toString());
		String c=sc.nextLine().toUpperCase();//无论输入什么，都化成大写字母
		if(sq.check(c)) {
			System.out.print("OK\n");
		}
		else {
			System.out.print("NO\n");
		}
	}

}
